package yogaModel

import (
	"time"
)

type ReqMyOrder struct {
	Id                int       `xorm:"not null pk autoincr INT(10)" json:"id" form:"id" mapstructure:"id"`
	ClassId           int       `json:"class_id"`
	ClassType         int       `json:"class_type"`
	Cover             string    `json:"cover"`
	OrderNo           string    `json:"order_no"`
	Title             string    `json:"title"`
	Content           string    `json:"content"`
	TotalAmount       float32   `json:"total_amount"`
	Teacher           string    `json:"teacher"`
	UserId            int       `json:"user_id"`
	OrderType         int       `json:"order_type"`
	DeletedAt         time.Time `xorm:"deleted" json:"-"`
	AppointmentStatus int       `json:"appointment_status"`
	SignType          int       `json:"sign_type"`
	StartTime         string    `json:"start_time"`
	EndTime           string    `json:"end_time"`
	SubMchId          string    `json:"sub_mch_id" json:"-"`
}

type ReqReservation struct {
	Id                int `json:"id" binding:"required" required_err:"参数缺失【id】"`
	SignType          int `json:"sign_type" `
	AppointmentStatus int `json:"appointment_status"`
}
type RspOrderList struct {
	OrderNo     string    `json:"order_no"`
	State       int       `json:"state"`
	TotalAmount float32   `json:"total_amount"`
	Content     string    `json:"content"`
	PayTime     int       `json:"pay_time"`
	Cover       string    `json:"cover"`
	ClassType   int       `json:"class_type"`
	StartTime   string    `json:"start_time"`
	EndTime     string    `json:"end_time"`
	CreatedAt   string    `json:"created_at"`
	ClassName   string    `json:"class_name"`
	DeletedAt   time.Time `xorm:"deleted" json:"-"`
}
type ReqSearchOrder struct {
	Id                 int     `json:"id"`
	FromId             int     `json:"from_id"`
	UserId             int     `json:"user_id"`
	TotalAmount        float32 `json:"total_amount"`
	OrderNo            string  `json:"order_no"`
	SubMchId           string  `json:"sub_mch_id"`
	IpAddr             string  `json:"ip_addr"`
	TransactionId      string  `json:"transaction_id"`
	Body               string  `json:"body"`
	DeletedAt          string  `xorm:"deleted"    json:"-"`
	Acid               int     `json:"acid"`
	Openid             string  `json:"openid"`
	State              int     `json:"state"`
	SeparateState      int     `json:"separate_state"`
	PayTime            any     `json:"pay_time"`
	AppointmentRemarks string  `json:"appointment_remarks"`
	OrderType          int     `json:"order_type"`
	AppointmentsNumber int     `json:"appointments_number"`
	ClassId            int     `json:"class_id"`
	BuyTime            string  `json:"buy_time"`
	Nickname           string  `json:"nickname"`
	Avatar             string  `json:"avatar"`
	ClassName          string  `json:"class_name"`
}
